package cn.fl.riskctrl.xjdb.service.impl;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import cn.fl.riskctrl.xjdb.service.IXjdbSearchService;
import cn.fl.riskctrl.xjdb.service.IXjnpAccFundService;
import cn.fl.riskctrl.xjdb.transform.XjnpAccFundVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpAdmAwardVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpAdmPunmVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpAnnoInfoVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpApplyLVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpApplyVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpAssDispVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpAssuRepayVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpBkIllumVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpCompetenceVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpCvlJdgVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpDissentInfoVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpEndmInsDptVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpEndmInsPaymVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpForceExeVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpGuarVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpLoanCardVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpLoanVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpOverdueRecVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpProfessionVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpRepayRecVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpReportVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpResidenceVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpSalvationVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpScoreElemVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpSearRecVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpSpecTrdVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpStadLoanCardVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpTaxArrearVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpTelPaymVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpVehicleVOTransform;
import cn.fl.riskctrl.xjdb.vo.XjnpAccFundVO;
import cn.fl.riskctrl.xjdb.vo.XjnpAdmAwardVO;
import cn.fl.riskctrl.xjdb.vo.XjnpAdmPunmVO;
import cn.fl.riskctrl.xjdb.vo.XjnpAnnoInfoVO;
import cn.fl.riskctrl.xjdb.vo.XjnpApplyLVO;
import cn.fl.riskctrl.xjdb.vo.XjnpApplyVO;
import cn.fl.riskctrl.xjdb.vo.XjnpAssDispVO;
import cn.fl.riskctrl.xjdb.vo.XjnpAssuRepayVO;
import cn.fl.riskctrl.xjdb.vo.XjnpBkIllumVO;
import cn.fl.riskctrl.xjdb.vo.XjnpCompetenceVO;
import cn.fl.riskctrl.xjdb.vo.XjnpCvlJdgVO;
import cn.fl.riskctrl.xjdb.vo.XjnpDissentInfoVO;
import cn.fl.riskctrl.xjdb.vo.XjnpEndmInsDptVO;
import cn.fl.riskctrl.xjdb.vo.XjnpEndmInsPaymVO;
import cn.fl.riskctrl.xjdb.vo.XjnpForceExeVO;
import cn.fl.riskctrl.xjdb.vo.XjnpGuarVO;
import cn.fl.riskctrl.xjdb.vo.XjnpLoanCardVO;
import cn.fl.riskctrl.xjdb.vo.XjnpLoanVO;
import cn.fl.riskctrl.xjdb.vo.XjnpOverdueRecVO;
import cn.fl.riskctrl.xjdb.vo.XjnpProfessionVO;
import cn.fl.riskctrl.xjdb.vo.XjnpRepayRecVO;
import cn.fl.riskctrl.xjdb.vo.XjnpReportVO;
import cn.fl.riskctrl.xjdb.vo.XjnpResidenceVO;
import cn.fl.riskctrl.xjdb.vo.XjnpSalvationVO;
import cn.fl.riskctrl.xjdb.vo.XjnpScoreElemVO;
import cn.fl.riskctrl.xjdb.vo.XjnpSearRecVO;
import cn.fl.riskctrl.xjdb.vo.XjnpSpecTrdVO;
import cn.fl.riskctrl.xjdb.vo.XjnpStadLoanCardVO;
import cn.fl.riskctrl.xjdb.vo.XjnpTaxArrearVO;
import cn.fl.riskctrl.xjdb.vo.XjnpTelPaymVO;
import cn.fl.riskctrl.xjdb.vo.XjnpVehicleVO;
import fl.riskctrl.facade.xjdb.api.IXjdbSearchApiService;
import fl.riskctrl.facade.xjdb.dto.XjnpAccFundDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpAdmAwardDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpAdmPunmDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpAnnoInfoDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpApplyDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpApplyLDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpAssDispDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpAssuRepayDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpBkIllumDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpCompetenceDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpCvlJdgDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpDissentInfoDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpEndmInsDptDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpEndmInsPaymDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpForceExeDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpGuarDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpLoanCardDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpLoanDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpOverdueRecDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpProfessionDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpRepayRecDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpReportDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpResidenceDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpSalvationDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpScoreElemDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpSearRecDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpSpecTrdDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpStadLoanCardDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpTaxArrearDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpTelPaymDTO;
import fl.riskctrl.facade.xjdb.dto.XjnpVehicleDTO;

@Service
@SuppressWarnings("unchecked")
public class XjdbSearchServiceImpl implements IXjdbSearchService {
	/**
	 * 日志
	 */
	private static final Logger logger = LoggerFactory.getLogger(IXjnpAccFundService.class);

	@Autowired
	private IXjdbSearchApiService xjdbSearchApiService;

	@Override
	public Pager searchXjnpAccFundListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpAccFundListPage(page);
		List<XjnpAccFundDTO> list = (List<XjnpAccFundDTO>) pager.getResultList();
		List<XjnpAccFundVO> voList = XjnpAccFundVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpAdmAwardListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpAdmAwardListPage(page);
		List<XjnpAdmAwardDTO> list = (List<XjnpAdmAwardDTO>) pager.getResultList();
		List<XjnpAdmAwardVO> voList = XjnpAdmAwardVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpAdmPunmListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpAdmPunmListPage(page);
		List<XjnpAdmPunmDTO> list = (List<XjnpAdmPunmDTO>) pager.getResultList();
		List<XjnpAdmPunmVO> voList = XjnpAdmPunmVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;

	}

	@Override
	public Pager searchXjnpAnnoInfoListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpAnnoInfoListPage(page);
		List<XjnpAnnoInfoDTO> list = (List<XjnpAnnoInfoDTO>) pager.getResultList();
		List<XjnpAnnoInfoVO> voList = XjnpAnnoInfoVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpAssDispListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpAssDispListPage(page);
		List<XjnpAssDispDTO> list = (List<XjnpAssDispDTO>) pager.getResultList();
		List<XjnpAssDispVO> voList = XjnpAssDispVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpAssuRepayListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpAssuRepayListPage(page);
		List<XjnpAssuRepayDTO> list = (List<XjnpAssuRepayDTO>) pager.getResultList();
		List<XjnpAssuRepayVO> voList = XjnpAssuRepayVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpBkIllumListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpBkIllumListPage(page);
		List<XjnpBkIllumDTO> list = (List<XjnpBkIllumDTO>) pager.getResultList();
		List<XjnpBkIllumVO> voList = XjnpBkIllumVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpCompetenceListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpCompetenceListPage(page);
		List<XjnpCompetenceDTO> list = (List<XjnpCompetenceDTO>) pager.getResultList();
		List<XjnpCompetenceVO> voList = XjnpCompetenceVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpCvlJdgListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpCvlJdgListPage(page);
		List<XjnpCvlJdgDTO> list = (List<XjnpCvlJdgDTO>) pager.getResultList();
		List<XjnpCvlJdgVO> voList = XjnpCvlJdgVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpDissentInfoListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpDissentInfoListPage(page);
		List<XjnpDissentInfoDTO> list = (List<XjnpDissentInfoDTO>) pager.getResultList();
		List<XjnpDissentInfoVO> voList = XjnpDissentInfoVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpEndmInsDptListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpEndmInsDptListPage(page);
		List<XjnpEndmInsDptDTO> list = (List<XjnpEndmInsDptDTO>) pager.getResultList();
		List<XjnpEndmInsDptVO> voList = XjnpEndmInsDptVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpEndmInsPaymListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpEndmInsPaymListPage(page);
		List<XjnpEndmInsPaymDTO> list = (List<XjnpEndmInsPaymDTO>) pager.getResultList();
		List<XjnpEndmInsPaymVO> voList = XjnpEndmInsPaymVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpForceExeListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpForceExeListPage(page);
		List<XjnpForceExeDTO> list = (List<XjnpForceExeDTO>) pager.getResultList();
		List<XjnpForceExeVO> voList = XjnpForceExeVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpGuarListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpGuarListPage(page);
		List<XjnpGuarDTO> list = (List<XjnpGuarDTO>) pager.getResultList();
		List<XjnpGuarVO> voList = XjnpGuarVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpLoanListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpLoanListPage(page);
		List<XjnpLoanDTO> list = (List<XjnpLoanDTO>) pager.getResultList();
		List<XjnpLoanVO> voList = XjnpLoanVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpLoanCardListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpLoanCardListPage(page);
		List<XjnpLoanCardDTO> list = (List<XjnpLoanCardDTO>) pager.getResultList();
		List<XjnpLoanCardVO> voList = XjnpLoanCardVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpOverdueRecListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpOverdueRecListPage(page);
		List<XjnpOverdueRecDTO> list = (List<XjnpOverdueRecDTO>) pager.getResultList();
		List<XjnpOverdueRecVO> voList = XjnpOverdueRecVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpProfessionListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpProfessionListPage(page);
		List<XjnpProfessionDTO> list = (List<XjnpProfessionDTO>) pager.getResultList();
		List<XjnpProfessionVO> voList = XjnpProfessionVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpRepayRecListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpRepayRecListPage(page);
		List<XjnpRepayRecDTO> list = (List<XjnpRepayRecDTO>) pager.getResultList();
		List<XjnpRepayRecVO> voList = XjnpRepayRecVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpReportListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpReportListPage(page);
		List<XjnpReportDTO> list = (List<XjnpReportDTO>) pager.getResultList();
		List<XjnpReportVO> voList = XjnpReportVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpResidenceListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpResidenceListPage(page);
		List<XjnpResidenceDTO> list = (List<XjnpResidenceDTO>) pager.getResultList();
		List<XjnpResidenceVO> voList = XjnpResidenceVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpSalvationListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpSalvationListPage(page);
		List<XjnpSalvationDTO> list = (List<XjnpSalvationDTO>) pager.getResultList();
		List<XjnpSalvationVO> voList = XjnpSalvationVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpScoreElemListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpScoreElemListPage(page);
		List<XjnpScoreElemDTO> list = (List<XjnpScoreElemDTO>) pager.getResultList();
		List<XjnpScoreElemVO> voList = XjnpScoreElemVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpSearRecListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpSearRecListPage(page);
		List<XjnpSearRecDTO> list = (List<XjnpSearRecDTO>) pager.getResultList();
		List<XjnpSearRecVO> voList = XjnpSearRecVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpSpecTrdListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpSpecTrdListPage(page);
		List<XjnpSpecTrdDTO> list = (List<XjnpSpecTrdDTO>) pager.getResultList();
		List<XjnpSpecTrdVO> voList = XjnpSpecTrdVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpStadLoanCardListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpStadLoanCardListPage(page);
		List<XjnpStadLoanCardDTO> list = (List<XjnpStadLoanCardDTO>) pager.getResultList();
		List<XjnpStadLoanCardVO> voList = XjnpStadLoanCardVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpTaxArrearListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpTaxArrearListPage(page);
		List<XjnpTaxArrearDTO> list = (List<XjnpTaxArrearDTO>) pager.getResultList();
		List<XjnpTaxArrearVO> voList = XjnpTaxArrearVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpTelPaymListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpTelPaymListPage(page);
		List<XjnpTelPaymDTO> list = (List<XjnpTelPaymDTO>) pager.getResultList();
		List<XjnpTelPaymVO> voList = XjnpTelPaymVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpVehicleListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpVehicleListPage(page);
		List<XjnpVehicleDTO> list = (List<XjnpVehicleDTO>) pager.getResultList();
		List<XjnpVehicleVO> voList = XjnpVehicleVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpApplyListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpApplyListPage(page);
		List<XjnpApplyDTO> list = (List<XjnpApplyDTO>) pager.getResultList();
		List<XjnpApplyVO> voList = XjnpApplyVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}

	@Override
	public Pager searchXjnpApplyLListPage(Pager page) throws BaseException {
		if (page == null)
			page = new Pager();
		Pager pager = xjdbSearchApiService.searchXjnpApplyLListPage(page);
		List<XjnpApplyLDTO> list = (List<XjnpApplyLDTO>) pager.getResultList();
		List<XjnpApplyLVO> voList = XjnpApplyLVOTransform.toVOList(list);
		pager.setResultList(voList);
		return pager;
	}
}
